package cn.wolfcode.wolf2w.business.api;

import cn.wolfcode.wolf2w.business.api.domain.UserinfoEs;
import cn.wolfcode.wolf2w.business.api.factory.RemoteUserinfoEsFallbackFactory;
import cn.wolfcode.wolf2w.common.core.constant.SecurityConstants;
import cn.wolfcode.wolf2w.common.core.constant.ServiceNameConstants;
import cn.wolfcode.wolf2w.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "RemoteUserinfoEsService", name = ServiceNameConstants.SEARCH_SERVICE, fallbackFactory = RemoteUserinfoEsFallbackFactory.class)
public interface RemoteUserinfoEsService {
    @PostMapping("/search/initUserinfoEs")
    R<?> initUserinfoEs(@RequestBody UserinfoEs userinfoEs, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);


}
